<?php

	class Employee implements iModel {
		
		public $employeeId;
		public $team;
		public $name;
		public $identification;
		public $identificationType;
		public $role;
		
		public function __construct() {
			$this->setTeam(new Team());
		}
		
		public function getEmployeeId() {
			 return $this->employeeId; 
		} 
		
		public function getTeam() {
			 return $this->team; 
		} 
		
		public function getName() {
			 return $this->name; 
		}
		 
		public function getIdentification() {
			 return $this->identification; 
		}
		 
		public function getIdentificationType() {
			 return $this->identificationType; 
		} 
		
		public function getRole() {
			 return $this->role; 
		}
		 
		public function setEmployeeId($employeeId) {
			 $this->employeeId = $employeeId; 
		}
		 
		public function setTeam($team) {
			 $this->team = $team; 
		}
		 
		public function setName($name) {
			 $this->name = $name; 
		}
		 
		public function setIdentification($identification) {
			 $this->identification = $identification; 
		}
		 
		public function setIdentificationType($identificationType) {
			 $this->identificationType = $identificationType; 
		}
		 
		public function setRole($role) {
			 $this->role = $role; 
		} 
		
		public function JSONToObject($employeeJSON) {
			
			$this->setEmployeeId($employeeJSON->employeeId);
			$this->setName($employeeJSON->name);
			$this->setIdentification($employeeJSON->identification);
			$this->setIdentificationType($employeeJSON->identificationType);
			$this->setRole($employeeJSON->role);
			
			$team = new Team();
			$this->setTeam($team->JSONToObject($employeeJSON->team));	
		}
		
	}

?>